<?php

namespace common\queues;

use common\models\task\TaskList;
use Yii;
use yii\base\BaseObject;


/**
 * Class TaskSettlementJob
 * @package common\queues
 * @author  
 */
class TaskSettlementJob extends BaseObject implements \yii\queue\JobInterface
{

    public $task;


    /**
     * @param \yii\queue\Queue $queue
     * @return mixed|void
     * @throws \yii\base\InvalidConfigException
     */
    public function execute($queue)
    {
        $this->task->orderDone();
    }
}